<?php  
	header( "Pragma: public" );  
	header( "Expires: 0" ); // set expiration time  
	header( "Cache-Component: must-revalidate, post-check=0, pre-check=0" );  
	header( "Content-type:application/msword");  
	$filename=rawurldecode($filename);
	$filename=iconv("UTF-8","gb2312//IGNORE",$filename);
	header( 'Content-Disposition: attachment; filename="'.$filename.'"' );
	header( 'Content-Transfer-Encoding: binary' );
?> 
<html xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:w="urn:schemas-microsoft-com:office:word">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!--[if gte mso 9]>
<xml><w:WordDocument><w:View>Print</w:View></w:WordDocument></xml>
<![endif]-->
</head>
<body style='text-justify-trim:punctuation'>
    <?php echo $content_for_layout; ?>
</body>
</html>